﻿/*
**  Manifold类
*/
if (!$.Engine.Collision || typeof $.Engine.Collision === "undefined") $.Engine.Collision = {};
$.Engine.Collision.Manifold = function () {
  this.points = new Array($.Engine.Settings.maxManifoldPoints);
  for (var i = 0; i < $.Engine.Settings.maxManifoldPoints; i++) {
    this.points[i] = new $.Engine.Collision.ContactPoint();
  }
  this.normal = new $.Engine.Math.Vector2D();
};

// A manifold for two touching convex shapes.
Object.extend($.Engine.Collision.Manifold.prototype, {
  points: null,
  normal: null,
  pointCount: 0
});
